package cn.shentianlan.mapper;

import cn.shentianlan.criteria.CourseCriteria;
import cn.shentianlan.domain.entity.Course;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author 陈俊源
 * @Description TODO
 * @Date 2021/4/20
 * @Version 1.0
 */
@Repository
public interface CourseMapper {
    void save(Course course);

    void update(Course course);

    List<Course> findCourseByCourseCriteria(CourseCriteria criteria);

    Integer getCount(CourseCriteria criteria);

    Course getCourseById(Long id);

    void deleteCourseById(Long id);
}
